地図:佐賀県

説明

指定した座標に佐賀県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x,y,c,18,31,63,63,127,95,127,63);
uart(n,14,3,x+8,y,c,0,0,0,0,0,139,255,255);
uart(n,14,3,x+16,y,c,0,0,0,0,0,255,255,255);
uart(n,14,3,x+24,y,c,0,0,0,0,0,128,224,248);
uart(n,14,3,x+32,y,c,0,0,0,0,0,0,0,120);
y=y+8;
uart(n,14,3,x,y,c,31,15,15,31,31,191,223,239);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,252,254,255,255,255,255,255,255);
uart(n,14,3,x+32,y,c,120,248,248,248,248,192,128,0);
y=y+8;
uart(n,14,3,x,y,c,255,127,63,63,31,15,0,0);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,127);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,247,224);
uart(n,14,3,x+24,y,c,255,254,252,240,224,192,0,0);
y=y+8;
uart(n,14,3,x,y,c,0,1,0,0,0,0,0,0);
uart(n,14,3,x+8,y,c,255,255,255,63,31,31,15,3);
uart(n,14,3,x+16,y,c,192,128,192,192,192,224,240,240);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る